function initChart() {
    var config = {
        title: {
            text: null,
        },
        credits: {
            enabled: false // 关闭版权信息
        },
        yAxis: {
            title: {
                text: CHART_TITLE
            }
        },
        xAxis: {
            type: 'datetime',
            tickInterval: 60 * 60 * 24 * 1000,
            labels: {
                formatter: function () {
                    return Highcharts.dateFormat('%m-%d', this.value);
                },
                rotation: -30
            }
        },
        legend: {
            enable: false
        },
        tooltip: {
            headerFormat: '<b>{point.key}</b><br>',
            pointFormat: '<span style="color:{series.color}">\u25CF</span>{point.series.name}: {point.y} ',
            xDateFormat: '%Y-%m-%d',
        },

        plotOptions: {
            series: {
                label: {
                    connectorAllowed: false
                },
                pointStart: 2010
            }
        },

        series: [{
            name: '总请求数',
            data: [43934, 48656, 65165, 81827, 112143, 142383,
                171533, 165174, 155157, 161454, 154610]
        }, {
            name: '异常请求数',
            data: [24916, 37941, 29742, 29851, 32490, 30282,
                38121, 36885, 33726, 34243, 31050]
        }, {
            name: '漏洞攻击数',
            data: [11744, 30000, 16005, 19771, 20185, 24377,
                32147, 30912, 29243, 29213, 25663]
        }, {
            name: '扫描数量',
            data: [null, null, null, null, null, null, null,
                null, 11164, 11218, 10077]
        }, {
            name: '重放攻击数',
            data: [21908, 5548, 8105, 11248, 8989, 11816, 18274,
                17300, 13053, 11906, 10073]
        }],

        responsive: {
            rules: [{
                condition: {
                    maxWidth: 500
                },
                chartOptions: {
                    legend: {
                        layout: 'horizontal',
                        align: 'center',
                        verticalAlign: 'bottom'
                    }
                }
            }]
        }

    };
    $.ajax({
        url: API_URL,
        success: function (res) {
            config.series = res.data
            Highcharts.setOptions({
                global: {
                    useUTC: false
                }
            });
            var chart = Highcharts.chart('chart', config);
        }
    })
};